<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


Route::get('/', 'IndexController@index');
Route::get('/about', 'IndexController@about');

Route::get('/map/{map_height}',function($map_height){
    return view('pages.map', ['map_height' => $map_height]);
})->where('map_height', '[0-9]+');

Route::get('/contact',function(){
    return view('pages.contact');
});

Route::get('/classify/{id?}', 'IndexController@classify')->where('id', '[0-9]+');

Route::get('/showcase/{id}','IndexController@showcase')->where('id','[0-9]+');

Route::match(['get', 'post'],'/submit_comment','IndexController@submit_comment');




/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/

Route::group(['middleware' => ['web']], function () {
    //
});
